#include <LengthUnit.h>

#define FEET_TO_INCH    12
#define YARD_TO_FEET    3
#define MILE_TO_YARD    1760

#define INCH_TO_LENGTH  1
#define FEET_TO_LENGTH  (INCH_TO_LENGTH * FEET_TO_INCH)
#define YARD_TO_LENGTH  (FEET_TO_LENGTH * YARD_TO_FEET)
#define MILE_TO_LENGTH  (YARD_TO_LENGTH * MILE_TO_YARD)

const unsigned long lengthFactor[] = 
{
    INCH_TO_LENGTH,
    FEET_TO_LENGTH,
    YARD_TO_LENGTH,
    MILE_TO_LENGTH,
};

const char *lengthTypeName[] =
{
    "INCH",
    "FEET",
    "YARD",
    "MILE",
};

const LengthUnit INCH(LENGTH_UNIT_INCH);
const LengthUnit FEET(LENGTH_UNIT_FEET);
const LengthUnit YARD(LENGTH_UNIT_YARD);
const LengthUnit MILE(LENGTH_UNIT_MILE);

